package com.qcby.service.impl;

import com.qcby.model.dto.MovieARVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qcby.dao.MovieActorRelationMapper;
import com.qcby.model.MovieActorRelation;
import com.qcby.query.MovieActorRelationQuery;
import com.qcby.service.MovieActorRelationService;

import java.util.List;

@Service
public class MovieActorRelationServiceImpl extends BaseServiceImpl<MovieActorRelationQuery, MovieActorRelation> implements
      MovieActorRelationService {


   private MovieActorRelationMapper movieActorRelationDao;

   @Autowired
   public void setBrandDao(MovieActorRelationMapper movieActorRelationDao) {
      this.movieActorRelationDao = movieActorRelationDao;
      this.baseDao = movieActorRelationDao;
   }

   @Override
   public List<MovieARVo> findMoveRole(Integer aid) {
      return movieActorRelationDao.findMoveRole(aid);
   }

   @Override
   public List<MovieARVo> findActorRole(Integer mid) {
      return movieActorRelationDao.findActorRole(mid);
   }

   @Override
   public void deleteByAid(Integer aid) {
      movieActorRelationDao.deleteByAid(aid);
   }
}
